package com.wzxy.wzinfo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wzxy.wzinfo.entiry.News;
import com.wzxy.wzinfo.repository.NewsRepository;
import com.wzxy.wzinfo.service.INewsService;

@Service
public class NewsService extends MyJpaService<News,Integer> implements INewsService {
	
	private NewsRepository newsRepository;
	
	@Autowired
	public void setNewsRepository(NewsRepository newsRepository) {
		this.newsRepository = newsRepository;
		super.setJpaRepository(newsRepository);
		super.setJpaSpecificationExecutor(newsRepository);
	}

	
	
}
